﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="OutStatistics.aspx.cs" Inherits="DomMgmtSystem.View.OutStatistics" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="detailsDiv">
        <table class="table table-bordered table-hover">
            <tr>
                <td class="tableleft" style="width: 150px">
                    项目编号：
                </td>
                <td>
                    <asp:TextBox ID="txtCSQBH" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td class="tableleft" style="width: 150px">
                    提供类型：
                </td>
                <td>
                    <asp:DropDownList ID="ddlNTGLX" runat="server">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value="1">单位申领</asp:ListItem>
                        <asp:ListItem Value="2">天地图</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" colspan="4">
                    <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" class="btn btn-primary" />
                </td>
            </tr>
        </table>
    </div>
    <div id="tabContents" class="detailsDiv">
        <!--数据列表-->
        <table class="table table-bordered table-hover" width="100%" id="list">
            <thead>
                <tr>
                    <th style="display: none">
                        序号ID
                    </th>
                    <th style="display: none">
                        提供编号
                    </th>
                    <%--<th name="tdLX">
                    国测成准编号
                </th>--%>
                    <th>
                        项目编号
                    </th>
                    <th>
                        卫星类型
                    </th>
                    <th>
                        景数
                    </th>
                    <th name="tdLX">
                        数据类容描述及文件名列表
                    </th>
                    <%--         <th name="tdLX">
                    航片数(片)
                </th>--%>
                    <th name="tdLX">
                        代收相片费
                    </th>
                    <th name="tdLX">
                        数据量(GB)
                    </th>
                    <th name="tdLX">
                        面积(KM2)
                    </th>
                    <th name="tdLX">
                        收费标准(元)
                    </th>
                    <th name="tdLX">
                        应付金额(元)
                    </th>
                    <th name="tdLX">
                        实收金额(元)
                    </th>
                    <th name="tdLX">
                        提供单位
                    </th>
                    <th name="tdLX">
                        提供人员
                    </th>
                    <th>
                        接收单位
                    </th>
                    <th>
                        接收人员
                    </th>
                    <th>
                        提供日期
                    </th>
                    <th>
                        归还日期
                    </th>
                    <th>
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td style="display: none">
                                <%--序号--%><%#Eval("NID")%>
                            </td>
                            <td style="display: none">
                                <%--提供编号--%><%#Eval("CTGBH")%>
                            </td>
                            <td>
                                <%--摄区代号--%><%#Eval("CXMBH")%>
                            </td>
                            <td>
                                <%--摄区代号--%><%#Eval("CWXLX")%>
                            </td>
                            <td>
                                <%--摄区代号--%><%#Eval("NJS").ToString() == "2" ? "-" : Eval("NJS")%>
                            </td>
                            <td name="tdLX">
                                <%--数据类容描述及文件名列表--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("CNR")%>
                            </td>
                            <td name="tdLX">
                                <%--代收相片费--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FDSXPF")%>
                            </td>
                            <td name="tdLX">
                                <%--数据量(GB)--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FSJL")%>
                            </td>
                            <td name="tdLX">
                                <%--面积(KM2)--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FMJ")%>
                            </td>
                            <td name="tdLX">
                                <%--收费标准(元)--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FSFBZ")%>
                            </td>
                            <td name="tdLX">
                                <%--应付金额(元)--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FYFJE")%>
                            </td>
                            <td name="tdLX">
                                <%--实收金额(元)--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("FSHJE")%>
                            </td>
                            <td name="tdLX">
                                <%--提供单位--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("CTGDW")%>
                            </td>
                            <td name="tdLX">
                                <%--提供人员--%><%# Eval("NTGLX").ToString() == "2" ? "-" : Eval("CTGRY")%>
                            </td>
                            <td>
                                <%--接收单位--%><%#Eval("CJSDW")%>
                            </td>
                            <td>
                                <%--接收人员--%><%#Eval("CJSRY")%>
                            </td>
                            <td>
                                <%--提供日期--%><%#Eval("DTTGRQ", "{0:yyyy-MM-dd}")%>
                            </td>
                            <td>
                                <%--归还日期--%><%#Eval("DTGHRQ", "{0:yyyy-MM-dd}")%>
                            </td>
                            <td>
                                <%# "<a href='OutRegister.aspx?hssjtgID=" + Eval("NID") + "&IsNew=false&view=true'>查看</a>&nbsp;<a href='OutRegister.aspx?hssjtgID=" + Eval("NID") + "&IsNew=false'>编辑</a>&nbsp;&nbsp;"+(Eval("NTGLX").ToString() == "2" ? "<a href='OutRegister.aspx?hssjtgID=" + Eval("NID") + "&IsNew=false&view=true&isgh=true'>归还</a>&nbsp;":"")%><asp:LinkButton
                                    ID="lbDel" runat="server" OnClientClick="javascript:if(confirm('确定要删除吗？'))return true;else  return false;"
                                    CommandName="Del" CommandArgument='<%#Eval("NID") %>'>删除</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <!--分页列表-->
        <div class="inline pull-right page">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="569px" UrlPaging="True"
                TextBeforePageIndexBox="转到" TextAfterPageIndexBox="页" SubmitButtonText="Go" ShowPageIndexBox="Never"
                PrevPageText="上一页" PageSize="14" PageIndexBoxType="DropDownList" OnPageChanging="AspNetPager1_PageChanging"
                NumericButtonTextFormatString="[{0}]" NumericButtonCount="5" NextPageText="下一页"
                LastPageText="尾页" ForeColor="Black" FirstPageText="首页" CurrentPageButtonTextFormatString="[{0}]"
                ButtonImageAlign="Middle">
            </webdiyer:AspNetPager>
        </div>
    </div>
    <script language="javascript" type="text/javascript">
        function show() {
            var state = $("#ddlNTGLX").val() == "1";
            $("#list td").each(function () {
                if ($(this).attr("name") == "tdLX" && state)
                    $(this).show();
                if ($(this).attr("name") == "tdLX" && !state)
                    $(this).hide();
            });
        }

    </script>
</asp:Content>
